import 'dart:convert';

import 'package:mziot/generated/json/base/json_field.dart';
import 'package:mziot/generated/json/user_entity.g.dart';

@JsonSerializable()
class UserEntity {
  String? nickName;
  int? userId;
  String? token;
  String? userHeadImg;
  String? userTimeZone;
  bool? isRegister;
  bool? isNeedSetTimezone;

  UserEntity();

  factory UserEntity.fromJson(Map<String, dynamic> json) => $UserEntityFromJson(json);

  Map<String, dynamic> toJson() => $UserEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
